package de.tuhh.simsearch.util;

/**
 * The class PreferenceTuple encapsulates a preference name and a content type. This is used to be able to refer to a
 * certain preference in a data transfer object.
 * 
 * @author SimSearch 1
 * 
 */
public class PreferenceTuple {

  private String contentType;
  private String preferenceName;

  /**
   * The class constructor sets the preference name and the content type
   * 
   * @param preferenceName
   *          the preference name
   * @param contType
   *          the string representation of the content type
   */
  public PreferenceTuple(String preferenceName, String contType) {

    this.contentType = contType;
    this.preferenceName = preferenceName;
  }

  /**
   * Gets the content type
   * 
   * @return the content type in string representation
   */
  public String getContentType() {

    return contentType;
  }

  /**
   * Sets the content type
   * 
   * @param contentType
   *          the string presentation of the content type
   */
  public void setContentType(String contentType) {

    this.contentType = contentType;
  }

  /**
   * Gets the preference name
   * 
   * @return the preference name
   */
  public String getPreferenceName() {

    return preferenceName;
  }

  /**
   * Sets the preference name
   * 
   * @param preferenceName
   *          the preference name
   */
  public void setPreferenceName(String preferenceName) {

    this.preferenceName = preferenceName;
  }

}
